package com.hone.honewed.service.head.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.eig.common.entity.homepageentity.headNav.TbHeadNav;
import com.eig.common.entity.homepageentity.prefecture.TbZone;
import com.eig.common.vo.Result;
import com.hone.honewed.dao.head.HeadDao;
import com.hone.honewed.service.head.HeadService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author ：YQ袁（2446806940@qq.com）
 * @date ：Created in 2022/12/28 18:19
 * @description：
 * @modified By：
 * @version:
 */
@Service
public class HeadServiceImpl implements HeadService {
    @Autowired
    private HeadDao headDao;

    @Override
    public Result getAllHead() {
        QueryWrapper<TbHeadNav> wrapper = new QueryWrapper<>();
        wrapper.eq("is_delete",0);
        wrapper.eq("is_diable",0);
        List<TbHeadNav> tbHeadNavs = headDao.selectList(wrapper);
        return new Result<>(2000,"查询成功",tbHeadNavs);
    }
}
